From: Keir Fraser Date: Mon, 26 Jan 2009 16:34:51 +0000 (+0000) Subject: xenoprof: Fix code indentation. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14014^2~12 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=a9973b2af4b45925172bbd4086961791685e5793;p=xen.git xenoprof: Fix code indentation. Signed-off-by: Keir Fraser --- diff --git a/xen/common/xenoprof.c b/xen/common/xenoprof.c index 0d508c20c8..4e71454a5a 100644 --- a/xen/common/xenoprof.c +++ b/xen/common/xenoprof.c @@ -136,23 +136,23 @@ share_xenoprof_page_with_guest(struct domain *d, unsigned long mfn, int npages) { int i; - /* Check if previous page owner has released the page. */ - for ( i = 0; i < npages; i++ ) - { - struct page_info *page = mfn_to_page(mfn + i); - if ( (page->count_info & (PGC_allocated|PGC_count_mask)) != 0 ) - { - gdprintk(XENLOG_INFO, "mfn 0x%lx page->count_info 0x%lx\n", - mfn + i, (unsigned long)page->count_info); - return -EBUSY; - } - page_set_owner(page, NULL); - } - - for ( i = 0; i < npages; i++ ) - share_xen_page_with_guest(mfn_to_page(mfn + i), d, XENSHARE_writable); - - return 0; + /* Check if previous page owner has released the page. */ + for ( i = 0; i < npages; i++ ) + { + struct page_info *page = mfn_to_page(mfn + i); + if ( (page->count_info & (PGC_allocated|PGC_count_mask)) != 0 ) + { + gdprintk(XENLOG_INFO, "mfn 0x%lx page->count_info 0x%lx\n", + mfn + i, (unsigned long)page->count_info); + return -EBUSY; + } + page_set_owner(page, NULL); + } + + for ( i = 0; i < npages; i++ ) + share_xen_page_with_guest(mfn_to_page(mfn + i), d, XENSHARE_writable); + + return 0; } static void